import subprocess


def mp4_convert_to_gif2(video_file_path):
    file_name_suffix = video_file_path.rfind('.')
    output_file_path = video_file_path[:file_name_suffix] + ".git"

    cmd = f"ffmpeg -i {video_file_path} {output_file_path}"
    subprocess.call(cmd, shell=True)


if __name__ == '__main__':
    input_file = r"/Users/admin/Downloads/ScreenRecording_07-10-2024_16-57-21_1.MP4"

    mp4_convert_to_gif2(input_file)
    print("Conversion completed!")

# mp4_Convert_to_gif1(video_file_path=r"/Users/admin/Downloads/ScreenRecording_07-10-2024_16-57-21_1.MP4")
